import { HEAD_DATA } from './actionTypes';
import axios from 'axios';

export const getHeaderData = () => async (dispatch) => {
  let res = await axios.get('./json/head.json');
  dispatch({
    type: HEAD_DATA,
    obj: res.data
  });
}